package com.bachelor.community.service.intf;

import com.bachelor.community.model.entity.Answer;
import com.bachelor.community.model.vo.AnswerVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface AnswerService extends IService<Answer> {
    List<AnswerVO> listAnswers(Long questionId, String orderColumn);

    IPage<AnswerVO> listAnswersByUserId(Integer currentPage, Integer pageSize, Integer userId);

    Answer partialUpdateAnswer(Integer answerId, Answer answer);

    IPage<AnswerVO> listAnswersByKeyword(int currentPage, int pageSize, String orderColumn, String keyword);

    AnswerVO insertAnswer(Long questionId, Answer answer);
}
